package com.huawei.appgallery.assistantdock.base.service;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import com.huawei.gamebox.plugin.gameservice.service.RequestInfo;
import com.huawei.secure.android.common.intent.SafeIntent;
import com.tencent.mm.opensdk.modelmsg.WXMediaMessage;
import o.ayw;
import o.dio.c;
import o.diu;
import o.Logger;
import o.fah;

public class GameServicePermissionActivity extends Activity {
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        requestWindowFeature(1);
        ayw.ॱ(this);
        getWindow().setFlags(WXMediaMessage.DESCRIPTION_LENGTH_LIMIT, WXMediaMessage.DESCRIPTION_LENGTH_LIMIT);
        View view = new View(this);
        view.setAlpha(0.0f);
        setContentView(view);
        ˏ((RequestInfo) new SafeIntent(getIntent()).getParcelableExtra("REQUEST_INFO_KEY"));
    }

    private void ˏ(final RequestInfo requestInfo) {
        final diu ˊ = diu.ˊ();
        if (ˊ.ˎ()) {
            fah.ॱ().ˏ(requestInfo);
            finish();
            return;
        }
        if (Logger.ˎ()) {
            Logger.ˏ("BuoyPermissionsCheckAction", "need to show protocol dialog before open buoy");
        }
        ˊ.ˏ(this, new c(this) {
            final /* synthetic */ GameServicePermissionActivity ॱ;

            public void ॱ(boolean z) {
                ˊ.ˋ(this.ॱ);
                if (z) {
                    fah.ॱ().ˏ(requestInfo);
                }
                this.ॱ.finish();
            }
        });
    }
}
